/**
 * 
 */
package com.kkks.spring_rest.tick.service;

import java.util.List;
import java.util.Map;

import org.apache.commons.collections.map.ListOrderedMap;

import com.kkks.spring_rest.tick.model.User;
import com.kkks.spring_rest.tick.model.WhoUsers;
import com.kkks.spring_rest.tick.model.pojo.WhoCommentList;
import com.kkks.spring_rest.tick.model.pojo.WhoUserLogin;

/**
 * @author SC
 * @version 1.0
 * @created 2012-7-18 下午1:54:31
 * @describe 用户管理接口
 */
public interface UserService {
	
	/**
	 * 描述 用户登录类
	 * 
	 * @param username
	 * @param password
	 * @return WhoUserLogin
	 */
	public WhoUserLogin UserLogin(String username, String password);

	/**
	 * 描述 根据用户名获取用户信息
	 * 
	 * @param username
	 * @param password
	 * @return WhoUsers
	 */
	public WhoUsers getUserByUserName(String userName);

	/**
	 * 描述 用户注册
	 * 
	 * @param userName
	 * @param password
	 * @param confirm
	 * @param phoneType  //10 iphone 12 android 11 ipad 默认 0 mobile
	 * @return resultValue int 0失败;1成功 errorDescription
	 */
	@SuppressWarnings("rawtypes")
	public Map UserRegister(String userName, String password, String confirm,
			String phoneType);

;


	/**
	 * 描述 新增用户评论
	 * 
	 * @param userId
	 * @param goodsId
	 * @param userToken
	 * @param title
	 * @param content
	 * @return ListOrderedMap
	 */
	public ListOrderedMap AddGoodsComment(String goodsId, String userId,
			String userToken, String title, String content);


	  
	    /**     
	     * 描述   获得用户的所有评论
	     * @param userId
	     * @param userToken
	     * @param pageNum
	     * @return     List<WhoCommentList>
	     */
	public List<WhoCommentList> getMyAllComments(String userId, String userToken, int pageNum);
	
	  
	    /**     
	     * 描述   设置默认收货地址
	     * @param userId
	     * @param userToken
	     * @param addressId
	     * @return     ListOrderedMap
	     */
	public ListOrderedMap setDefaultAddress(String userId, String userToken, String addressId);
	

	@SuppressWarnings("rawtypes")
	public List getAllUsers();
	
	public void addOrUpdate(WhoUsers user);
	
	public void deleteUsers(List<Integer> userId);
}
